/* 
 * File:   application.cpp
 * Author: Faraj
 * 
 * Created on May 12, 2013, 12:44 AM
 */

#include "application.h"

lib::application::application(string name) {
    _name = name;
    common::log::trace("application.application " + name);
}

lib::application::~application() {
}

string lib::application::get_name(){
    return _name;
}

void lib::application::add_param(string name, string param){
    common::log::trace("application.add_param " + name);
    _params[name] = param;
}

void lib::application::set_ext(string exts){
    common::log::trace("application.set_ext " + exts);
    if(common::str::contains(",", exts)){
        _exts = common::str::explode(",", exts);
    }else{
        _exts.push_back(exts);
    }
}

void lib::application::execute() {
    
}
